import request from '@/utils/requestMd5'

//列表
export function offlineCommissionList(params) {
  return request({
    url: '/financial/offlineCommissionList',
    method: 'get',
    params
  })
}
//新建
export function addBill(params) {
  return request({
    url: '/financial/addBill',
    method: 'post',
    params
  })
}

//搜索客户列表
export function getCompanyListByName(params) {
  return request({
    url: '/base/getCompanyListByName',
    method: 'get',
    params
  })
}

//作废
export function invalidBill(params) {
  return request({
    url: '/financial/invalidBill',
    method: 'get',
    params
  })
}
//对账
export function account(params) {
  return request({
    url: '/financial/account',
    method: 'post',
    params
  })
}
//抹零
export function zero(params) {
  return request({
    url: '/financial/zero',
    method: 'post',
    params
  })
}
//获取设置的天数
export function getBillDays(params) {
  return request({
    url: '/financial/getBillDays',
    method: 'get',
    params
  })
}
//设置
export function setBill(params) {
  return request({
    url: '/financial/setBill',
    method: 'post',
    params
  })
}

//结算
export function settlement(params) {
  return request({
    url: '/financial/settlement',
    method: 'post',
    params
  })
}
//订单详情
export function offlineCommissionDetail(params) {
  return request({
    url: '/financial/offlineCommissionDetail',
    method: 'get',
    params
  })
}

//订单详情生命周期
export function getBillLife(params) {
  return request({
    url: '/financial/getBillLife',
    method: 'get',
    params
  })
}